package com.tomtop.core.code;

public class TransforCodeString{
	
	private final static TransforCode CODE_STRING=
			new TransforCode("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@$".getBytes());
	
	public final static Long deserialize(String codes) {
		if(codes==null)
			return null;
		return CODE_STRING.deserialize(codes.getBytes());
	}
	
	public final static String serialize(Long _long) {
		if(_long==null)
			return null;
		return new String(CODE_STRING.serialize(_long));
	}
}

